package com.java.test.exception;

/**
 * @author TonyOne
 * @version 1.0
 * @desc
 * @date 2018/10/10 14:58
 * @company
 */
public class Finally {

    public static int m() {
        int a=1;
        try {
            a=2;
//            a=a/0;
            return a;
        }catch (Exception e) {
            a=3;
            e.printStackTrace();
            return a;
        } finally {
            a=4;
//            return a;
        }
    }
    public static void main(String[] args) {
        System.out.println(m());
    }
}
